Optimal. Leaf size=261 \[ \frac {(33 A-13 B) \sin (c+d x)}{6 a^3 d \sqrt {\sec (c+d x)}}-\frac {7 (17 A-7 B) \sin (c+d x)}{30 d \sqrt {\sec (c+d x)} \left (a^3 \sec (c+d x)+a^3\right )}+\frac {(33 A-13 B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{6 a^3 d}-\frac {7 (17 A-7 B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{10 a^3 d}-\frac {(2 A-B) \sin (c+d x)}{3 a d \sqrt {\sec (c+d x)} (a \sec (c+d x)+a)^2}-\frac {(A-B) \sin (c+d x)}{5 d \sqrt {\sec (c+d x)} (a \sec (c+d x)+a)^3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.55, antiderivative size = 261, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 6, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {4020, 3787, 3769, 3771, 2641, 2639} \[ \frac {(33 A-13 B) \sin (c+d x)}{6 a^3 d \sqrt {\sec (c+d x)}}-\frac {7 (17 A-7 B) \sin (c+d x)}{30 d \sqrt {\sec (c+d x)} \left (a^3 \sec (c+d x)+a^3\right )}+\frac {(33 A-13 B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{6 a^3 d}-\frac {7 (17 A-7 B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{10 a^3 d}-\frac {(2 A-B) \sin (c+d x)}{3 a d \sqrt {\sec (c+d x)} (a \sec (c+d x)+a)^2}-\frac {(A-B) \sin (c+d x)}{5 d \sqrt {\sec (c+d x)} (a \sec (c+d x)+a)^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2639
Rule 2641
Rule 3769
Rule 3771
Rule 3787
Rule 4020
Rubi steps
\begin {align*} \int \frac {A+B \sec (c+d x)}{\sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))^3} \, dx &=-\frac {(A-B) \sin (c+d x)}{5 d \sqrt {\sec (c+d x)} (a+a \sec (c+d x))^3}+\frac {\int \frac {\frac {1}{2} a (13 A-3 B)-\frac {7}{2} a (A-B) \sec (c+d x)}{\sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))^2} \, dx}{5 a^2}\\ &=-\frac {(A-B) \sin (c+d x)}{5 d \sqrt {\sec (c+d x)} (a+a \sec (c+d x))^3}-\frac {(2 A-B) \sin (c+d x)}{3 a d \sqrt {\sec (c+d x)} (a+a \sec (c+d x))^2}+\frac {\int \frac {\frac {3}{2} a^2 (23 A-8 B)-\frac {25}{2} a^2 (2 A-B) \sec (c+d x)}{\sec ^{\frac {3}{2}}(c+d x) (a+a \sec (c+d x))} \, dx}{15 a^4}\\ &=-\frac {(A-B) \sin (c+d x)}{5 d \sqrt {\sec (c+d x)} (a+a \sec (c+d x))^3}-\frac {(2 A-B) \sin (c+d x)}{3 a d \sqrt {\sec (c+d x)} (a+a \sec (c+d x))^2}-\frac {7 (17 A-7 B) \sin (c+d x)}{30 d \sqrt {\sec (c+d x)} \left (a^3+a^3 \sec (c+d x)\right )}+\frac {\int \frac {\frac {15}{4} a^3 (33 A-13 B)-\frac {21}{4} a^3 (17 A-7 B) \sec (c+d x)}{\sec ^{\frac {3}{2}}(c+d x)} \, dx}{15 a^6}\\ &=-\frac {(A-B) \sin (c+d x)}{5 d \sqrt {\sec (c+d x)} (a+a \sec (c+d x))^3}-\frac {(2 A-B) \sin (c+d x)}{3 a d \sqrt {\sec (c+d x)} (a+a \sec (c+d x))^2}-\frac {7 (17 A-7 B) \sin (c+d x)}{30 d \sqrt {\sec (c+d x)} \left (a^3+a^3 \sec (c+d x)\right )}+\frac {(33 A-13 B) \int \frac {1}{\sec ^{\frac {3}{2}}(c+d x)} \, dx}{4 a^3}-\frac {(7 (17 A-7 B)) \int \frac {1}{\sqrt {\sec (c+d x)}} \, dx}{20 a^3}\\ &=\frac {(33 A-13 B) \sin (c+d x)}{6 a^3 d \sqrt {\sec (c+d x)}}-\frac {(A-B) \sin (c+d x)}{5 d \sqrt {\sec (c+d x)} (a+a \sec (c+d x))^3}-\frac {(2 A-B) \sin (c+d x)}{3 a d \sqrt {\sec (c+d x)} (a+a \sec (c+d x))^2}-\frac {7 (17 A-7 B) \sin (c+d x)}{30 d \sqrt {\sec (c+d x)} \left (a^3+a^3 \sec (c+d x)\right )}+\frac {(33 A-13 B) \int \sqrt {\sec (c+d x)} \, dx}{12 a^3}-\frac {\left (7 (17 A-7 B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sqrt {\cos (c+d x)} \, dx}{20 a^3}\\ &=-\frac {7 (17 A-7 B) \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{10 a^3 d}+\frac {(33 A-13 B) \sin (c+d x)}{6 a^3 d \sqrt {\sec (c+d x)}}-\frac {(A-B) \sin (c+d x)}{5 d \sqrt {\sec (c+d x)} (a+a \sec (c+d x))^3}-\frac {(2 A-B) \sin (c+d x)}{3 a d \sqrt {\sec (c+d x)} (a+a \sec (c+d x))^2}-\frac {7 (17 A-7 B) \sin (c+d x)}{30 d \sqrt {\sec (c+d x)} \left (a^3+a^3 \sec (c+d x)\right )}+\frac {\left ((33 A-13 B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx}{12 a^3}\\ &=-\frac {7 (17 A-7 B) \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{10 a^3 d}+\frac {(33 A-13 B) \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{6 a^3 d}+\frac {(33 A-13 B) \sin (c+d x)}{6 a^3 d \sqrt {\sec (c+d x)}}-\frac {(A-B) \sin (c+d x)}{5 d \sqrt {\sec (c+d x)} (a+a \sec (c+d x))^3}-\frac {(2 A-B) \sin (c+d x)}{3 a d \sqrt {\sec (c+d x)} (a+a \sec (c+d x))^2}-\frac {7 (17 A-7 B) \sin (c+d x)}{30 d \sqrt {\sec (c+d x)} \left (a^3+a^3 \sec (c+d x)\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 7.28, size = 988, normalized size = 3.79 \[ \frac {119 \sqrt {2} A e^{-i d x} \sqrt {\frac {e^{i (c+d x)}}{1+e^{2 i (c+d x)}}} \sqrt {1+e^{2 i (c+d x)}} \csc \left (\frac {c}{2}\right ) \left (e^{2 i d x} \left (-1+e^{2 i c}\right ) \, _2F_1\left (\frac {1}{2},\frac {3}{4};\frac {7}{4};-e^{2 i (c+d x)}\right )-3 \sqrt {1+e^{2 i (c+d x)}}\right ) \sec \left (\frac {c}{2}\right ) \sec ^2(c+d x) (A+B \sec (c+d x)) \cos ^6\left (\frac {c}{2}+\frac {d x}{2}\right )}{15 d (B+A \cos (c+d x)) (\sec (c+d x) a+a)^3}-\frac {49 \sqrt {2} B e^{-i d x} \sqrt {\frac {e^{i (c+d x)}}{1+e^{2 i (c+d x)}}} \sqrt {1+e^{2 i (c+d x)}} \csc \left (\frac {c}{2}\right ) \left (e^{2 i d x} \left (-1+e^{2 i c}\right ) \, _2F_1\left (\frac {1}{2},\frac {3}{4};\frac {7}{4};-e^{2 i (c+d x)}\right )-3 \sqrt {1+e^{2 i (c+d x)}}\right ) \sec \left (\frac {c}{2}\right ) \sec ^2(c+d x) (A+B \sec (c+d x)) \cos ^6\left (\frac {c}{2}+\frac {d x}{2}\right )}{15 d (B+A \cos (c+d x)) (\sec (c+d x) a+a)^3}+\frac {22 A \sqrt {\cos (c+d x)} \csc \left (\frac {c}{2}\right ) F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sec \left (\frac {c}{2}\right ) \sec ^{\frac {5}{2}}(c+d x) (A+B \sec (c+d x)) \sin (c) \cos ^6\left (\frac {c}{2}+\frac {d x}{2}\right )}{d (B+A \cos (c+d x)) (\sec (c+d x) a+a)^3}-\frac {26 B \sqrt {\cos (c+d x)} \csc \left (\frac {c}{2}\right ) F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sec \left (\frac {c}{2}\right ) \sec ^{\frac {5}{2}}(c+d x) (A+B \sec (c+d x)) \sin (c) \cos ^6\left (\frac {c}{2}+\frac {d x}{2}\right )}{3 d (B+A \cos (c+d x)) (\sec (c+d x) a+a)^3}+\frac {\sec ^{\frac {5}{2}}(c+d x) (A+B \sec (c+d x)) \left (\frac {2 \sec \left (\frac {c}{2}\right ) \left (B \sin \left (\frac {d x}{2}\right )-A \sin \left (\frac {d x}{2}\right )\right ) \sec ^5\left (\frac {c}{2}+\frac {d x}{2}\right )}{5 d}+\frac {2 (B-A) \tan \left (\frac {c}{2}\right ) \sec ^4\left (\frac {c}{2}+\frac {d x}{2}\right )}{5 d}-\frac {4 \sec \left (\frac {c}{2}\right ) \left (17 B \sin \left (\frac {d x}{2}\right )-22 A \sin \left (\frac {d x}{2}\right )\right ) \sec ^3\left (\frac {c}{2}+\frac {d x}{2}\right )}{15 d}-\frac {4 (17 B-22 A) \tan \left (\frac {c}{2}\right ) \sec ^2\left (\frac {c}{2}+\frac {d x}{2}\right )}{15 d}+\frac {4 \sec \left (\frac {c}{2}\right ) \left (23 B \sin \left (\frac {d x}{2}\right )-43 A \sin \left (\frac {d x}{2}\right )\right ) \sec \left (\frac {c}{2}+\frac {d x}{2}\right )}{3 d}-\frac {2 (-30 \cos (2 c) A-89 A+39 B+10 B \cos (2 c)) \cos (d x) \csc \left (\frac {c}{2}\right ) \sec \left (\frac {c}{2}\right )}{5 d}+\frac {8 A \cos (2 d x) \sin (2 c)}{3 d}+\frac {16 (B-3 A) \cos (c) \sin (d x)}{d}+\frac {8 A \cos (2 c) \sin (2 d x)}{3 d}+\frac {4 (23 B-43 A) \tan \left (\frac {c}{2}\right )}{3 d}\right ) \cos ^6\left (\frac {c}{2}+\frac {d x}{2}\right )}{(B+A \cos (c+d x)) (\sec (c+d x) a+a)^3} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.47, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {{\left (B \sec \left (d x + c\right ) + A\right )} \sqrt {\sec \left (d x + c\right )}}{a^{3} \sec \left (d x + c\right )^{5} + 3 \, a^{3} \sec \left (d x + c\right )^{4} + 3 \, a^{3} \sec \left (d x + c\right )^{3} + a^{3} \sec \left (d x + c\right )^{2}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {B \sec \left (d x + c\right ) + A}{{\left (a \sec \left (d x + c\right ) + a\right )}^{3} \sec \left (d x + c\right )^{\frac {3}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 5.30, size = 465, normalized size = 1.78 \[ -\frac {\sqrt {\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (160 A \left (\cos ^{10}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+468 A \left (\cos ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+330 A \left (\cos ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )+714 A \left (\cos ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-348 B \left (\cos ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-130 B \left (\cos ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-294 B \left (\cos ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-1058 A \left (\cos ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+578 B \left (\cos ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+474 A \left (\cos ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-264 B \left (\cos ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-47 A \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+37 B \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+3 A -3 B \right )}{60 a^{3} \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{5} \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: RuntimeError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {A+\frac {B}{\cos \left (c+d\,x\right )}}{{\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^3\,{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{3/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________